Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restruct parsing flow #60

Merged
merged 2 commits into from
Aug 7, 2024
Merged

Conversation

ngocthanh1389
Copy link
Member

@ngocthanh1389 ngocthanh1389 commented Aug 5, 2024

What is the problem?
Currently, we identify exchange by event log
So, with contract don't have event log like 0x v3, we can't parse trade

What do you do?
We verify exchange base on contract address also
Remove unused exchange and add 0x v3

@ngocthanh1389 ngocthanh1389 force-pushed the TRD-485-match-exchange-with-address branch from eba2b26 to 22bcd64 Compare August 5, 2024 10:27
@ngocthanh1389 ngocthanh1389 requested a review from secmask August 7, 2024 03:34
@@ -87,14 +81,19 @@ func (w *Worker) processMessages(m []evmlistenerclient.Message) error {
}
}
for _, log := range block.Logs {
if len(log.Topics) == 0 {
continue
ethLog := convert.ToETHLog(log)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think should refactor this block into something like findMatchingParser

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@ngocthanh1389 ngocthanh1389 requested a review from secmask August 7, 2024 06:01
@ngocthanh1389 ngocthanh1389 merged commit 509dd73 into main Aug 7, 2024
6 checks passed
@ngocthanh1389 ngocthanh1389 deleted the TRD-485-match-exchange-with-address branch August 7, 2024 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants